package interfaces;

import java.util.HashMap;
import model.Model;

public abstract class AbstractDrink {

	protected HashMap<String, Integer> ingredients;
	protected HashMap<String, Integer> dishes;

	public AbstractDrink() {
		ingredients = new HashMap<String, Integer>();
		dishes = new HashMap<String, Integer>();
	}

	public HashMap<String, Integer> getIngredients() {
		return ingredients;
	}
	public HashMap<String, Integer> getDishes() {
		return dishes;
	}

	public boolean hasEnoughDishes() {
		return Model.getInstance().getDishes().contains(dishes);
	}

	public boolean hasEnoughIngredients() {
		return Model.getInstance().getStock().contains(ingredients);
	}

	public abstract String getName();
}